<?php
/**
 * 对IE6用户显示升级浏览器提示
 * 
 * @package DiscardIE6
 * @author John.H
 * @version 1.0.0
 * @link http://typecho.org
 */
class DiscardIE6_Plugin implements Typecho_Plugin_Interface
{
    public static function activate()
    {
        Typecho_Plugin::factory('Widget_Archive')->footer = array('DiscardIE6_Plugin', 'footer');
    }
    
    public static function deactivate(){}
    
    public static function config(Typecho_Widget_Helper_Form $form){}
    
    public static function personalConfig(Typecho_Widget_Helper_Form $form){}
        
    public static function footer($footer, $archive)
    {
        $webbuild_js    = <<<EOF
		<!--[if lte IE 6]>
		<script type="text/javascript" src="http://www.webrebuild.org/webrebuild_api.js"></script>
		<![endif]-->
EOF;
        echo $webbuild_js;
    }    

}